package com.shujia.test;

import com.shujia.utils.HbaseUtil;
import org.apache.hadoop.hbase.client.Result;
import org.apache.hadoop.hbase.client.ResultScanner;
import org.apache.hadoop.hbase.client.Scan;
import org.apache.hadoop.hbase.client.Table;

public class ScanTest1 {
    public static void main(String[] args) throws Exception{
        Table mysql2hbase1 = HbaseUtil.getOneTable("mysql2hbase1");
        ResultScanner resultScanner = mysql2hbase1.getScanner(new Scan());
        for (Result result : resultScanner) {
            HbaseUtil.printResult(result);
        }
    }
}
